<template>
  <!--基本信息-->
  <v-container class="vcontainer">
    <div class="detail-info basicMain">
      <v-tabs v-model="active" class="vtab-toggle" active-class="vtab-active">
        <v-tab class="vtab vtab-radius1">{{
          $t("assessment.BasicInfo")
        }}</v-tab>
        <v-tab class="vtab">{{
          $t("assessment.EquityAndFinancingInfo")
        }}</v-tab>
        <!--<v-tab class="vtab">经营信息</v-tab>-->
        <!--<v-tab class="vtab">公司投资分析</v-tab>-->

        <!-- 基本信息 -->
        <v-tab-item lazy>
          <basicInfo />
        </v-tab-item>
        <!-- 股权和融资信息 -->
        <v-tab-item lazy>
          <stockRight />
        </v-tab-item>
        <!-- 经营信息 -->
        <!--<v-tab-item lazy>
	          <engageIn/>
	        </v-tab-item>-->
        <!-- 公司投资分析 -->
        <!--<v-tab-item lazy>
	          <investment/>
	        </v-tab-item>-->
      </v-tabs>
    </div>
  </v-container>
</template>

<script>
import basicInfo from "./basicInfo"; //基本信息
import stockRight from "./stockRight"; //股权和融资信息
import engageIn from "./engageIn"; //经营信息
import investment from "./investment"; //公司投资分析
export default {
  components: {
    basicInfo,
    stockRight,
    engageIn,
    investment,
  },
  watch: {
    "$route.query.active"() {
      // this.active = this.$route.query.active;
    },
    active() {
      this.$router.push({
        path: "basic",
        query: {
          active: this.active,
        },
      });
    },
  },
  data() {
    return {
      active: Number(this.$route.query.active) || 0,
    };
  },
  // beforeDestroy() {
  // 	this.$Bus.$off('toAnalysisBox')
  // }
};
</script>

<style lang="scss" scoped>
.vcontainer {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  padding: 0;
}
.detail-info {
  padding: 20px;
}
.vtab-toggle {
  width: 100%;
}

.v-window-item {
  margin-top: 20px;
}
.vtab {
  width: 50%;
  /*width: 25%;*/
  max-width: initial !important;
  min-width: 145px !important;
  line-height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #7674a3;
  background-color: #fff;
}
</style>
